#include "../../include/graphics2d.h"
#include "../h/libs/gl/axgl.h"
//#include "../h/CWin32Window.h"

FUNC_EXPORT void axelynx::Start2D(int sizex,int sizey)
{
	glViewport(0,0,sizex,sizey);
	glDisable (GL_CULL_FACE);
	glDisable ( GL_DEPTH_TEST );
	glMatrixMode( GL_PROJECTION );
	glLoadIdentity();
	glOrtho(0, sizex, sizey,0,-1,1);
	glTranslatef(0.375f,0.375f,0.0f);
	glMatrixMode( GL_MODELVIEW );
	glLoadIdentity();

	glColor4ub(255,255,255,255);
}


FUNC_EXPORT void axelynx::Start2DRect(int x, int y, int sizex,int sizey)
{
    glViewport(x,y,sizex,sizey);
	glDisable (GL_CULL_FACE);
	glDisable ( GL_DEPTH_TEST );
	glMatrixMode( GL_PROJECTION );
	glLoadIdentity();
	glOrtho(0, sizex, sizey,0,-1,1);
	glTranslatef(0.375f,0.375f,0.0f);
	glMatrixMode( GL_MODELVIEW );
	glLoadIdentity();

	glColor4ub(255,255,255,255);
}

FUNC_EXPORT void axelynx::Start2D()
{
    //Start2D(CWin32Window::current_->Width(),CWin32Window::current_->Height());
}
